package com.example.mymusicdisplay.utils;

import java.text.SimpleDateFormat;

/**
 * author: ts
 * created on: 2021/10/12 上午11:04
 * description:
 */
public class TimeFormatUtil {

    private static String FORMAT_MS = "mm:ss";
    private static SimpleDateFormat format;

    public static String formatTime(int time) {
        if (format == null) {
            format = new SimpleDateFormat(FORMAT_MS);
        }
        return format.format(time);
    }
}
